<?php

/* Checks if the config file exists.
 * If yes, then checks for a bunch of constants
 * that define the database name, database user name, etc.,
 * 
 * If the config file is not found, then perhaps, 
 * user has not set things up yet. 
 
 * So, point the user at install.php.
 * 
 */
include_once "functions.php";
 
if ( file_exists( "./config.php" ) ) {
	include_once "./config.php";
} else {
	header( sprintf("Location:%s", get_url_to("install.php") ) );	
}

?>